package com.tengju.bff.interfaces.app.common.assembler;

import com.tengju.bff.interfaces.app.common.vo.AppBannerVO;
import com.tengju.support.domain.model.resource.Resource;

public class AppBannerAssembler {

    public static AppBannerVO domainToVo(Resource resource) {

        return new AppBannerVO(resource.getAction().getVal(),
                resource.getImgUrl(),
                resource.getTitle(),
                resource.getJumpUrl());

    }
}
